.column-selector
  top 0
  right 0
  width 100%
  display flex
  overflow hidden
  position absolute
  justify-content flex-end

  &__button
    padding 0
    z-index 1000
    border-radius 0
    height 44px
    width 45px
    margin -1px
    box-shadow none
    border-left 1px solid rgba(#000, 0.1)

  &__button-new&__button-new
    z-index 1000
    height 28px
    width 28px
    background-color #fff
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.2);
    margin: 6.5px 20px;
    border-radius: 4px;

    &:hover
      border none
      filter none
      background #ebf3fc

    &:active
      background linear-gradient(0deg, rgba(#000, 0.02), rgba(#000, 0.02)), #FFFFFF
      box-shadow: 0 0 5px 0 rgba(0,0,0,0.2);


.table
  width 100%
  height 100%
  display flex
  flex-direction column
  overflow auto
  background-color #fff

  &__select-all
    &::after
      top 50%
      right 5px
      bottom 0
      width 1px
      height 22px
      content ""
      z-index 5
      display block
      background #bdbdbd
      transform translateY(-50%)
      position absolute


  &_fit
    width max-content

  &__sticky-header
    width 100%

  &__auto-size,
  &__virtual
    width auto

    ^[0]_fit &
      width fit-content

  &__virtual
    max-width: 100vw;
    min-width: 100vw;

  &__virtual > div
    min-width fit-content

  &__row-wrapper
    min-width fit-content
    position relative
    cursor pointer
    background-color var(--sand_0)

    &_disabled,
    &_loading
      opacity 0.6
      pointer-events none

    &_even:not(&_selected)
      background-color var(--sand_100)

    &_selected
      background-color var(--grape_0)

    &:not(&_selected):hover
      background-color var(--grape_0)

    &_highlighted:not(&_selected)::after
      top 0
      left 0
      width 100%
      height 100%
      content ""
      z-index 50
      position absolute
      pointer-events none
      box-shadow 0 0 0 1px rgba($accent_color, 0.8) inset

  &__cell
    flex 150 0 auto
    width fit-content
    min-width min-content
    max-width min-content
    padding 10px
    box-sizing border-box
    display flex
    align-items center
    position relative
    overflow hidden
    word-break break-word

  &__cell-content
    flex 0
    display flex
    white-space nowrap
    align-items center

    &_disabled
      opacity 0.6
      pointer-events none
